package com.sanchunhui.psc.service.impl

import com.sanchunhui.psc.data.protocol.ResponseInfo
import com.sanchunhui.psc.data.respository.ProjectTeamRepository
import com.sanchunhui.psc.data.respository.TeamMemberRepository
import com.sanchunhui.psc.ext.convertBoolean
import com.sanchunhui.psc.service.TeamMemberService
import rx.Observable
import javax.inject.Inject

/**
 * @Author zyx
 * @Date 2021/7/21-14:24
 * @Dscribe
 */
class TeamMemberServiceImpl @Inject constructor() : TeamMemberService {

    @Inject
    lateinit var repository : TeamMemberRepository

    /*
        获取分组成员
    */
    override fun getMyTeamMember(token: String): Observable<ResponseInfo> {
        return repository.getMyTeamMember(token)
    }

    /*
        获取分组信息
    */
    override fun getMyTeamInfo(token: String): Observable<ResponseInfo> {
        return repository.getMyTeamInfo(token)
    }

    /*
        更改分组状态
    */
    override fun changeTeamStatus(teamId: Int, token: String, status: String): Observable<ResponseInfo> {
        return repository.changeTeamStatus(teamId,token, status)
    }
}